package com.cavas.domain.bean;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="finance")
public class Finance implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	 private Integer financeId;
	@ManyToOne
	@JoinColumn(name="membreId")
	 private Membre membre;
	 private String nom;
	 private Integer fdr;
	 private String date;
	 private Integer interet;
	 private String info;
	 
	public Integer getFinanceId() {
		return financeId;
	}
	public void setFinanceId(Integer id) {
		this.financeId = id;
	}
	public Membre getMembre() {
		return membre;
	}
	
	public void setMembre(Membre membre) {
		this.membre = membre;
	}
	public Integer getFdr() {
		return fdr;
	}
	public void setFdr(Integer fdr) {
		this.fdr = fdr;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public Integer getInteret() {
		return interet;
	}
	public void setInteret(Integer interet) {
		this.interet = interet;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}
	 
	 
}


